<?php

namespace app\admin\validate;
use think\Validate;

class Cycle extends Validate
{
    protected $rule = [
        'name'	 	=> 'require|unique:cycle',
        'days'	 	=> 'require|unique:cycle',
        'profit'    => 'require',
    ];

    protected $message = [
        'name.require' 		=> '名称不能为空',
        'name.unique'  		=> '名称已存在',
        'days.require' 		=> '打赏周期不能为空',
        'days.unique'       => '打赏周期已存在',
        'profit.require'    => '收益率不能为空'
    ];
}
